package xyz.jcat.common.util;

import java.util.Objects;

public class ObjectUtils extends org.apache.commons.lang3.ObjectUtils {

    public static boolean isNull(Object obj) {
        return obj == null;
    }

    public static boolean notNull(Object obj) {
        return !isNull(obj);
    }

    public static boolean notEquals(Object target1, Object target2) {
        return !Objects.equals(target1, target2);
    }

    public static boolean in(Object target1, Object... target2) {
        for (Object obj : target2) {
            if (equals(target1, obj)) {
                return true;
            }
        }
        return false;
    }

    public static boolean notIn(Object target1, Object... target2) {
        return !in(target1, target2);
    }
}
